{% extends '::visitors.html.twig' %}
{% block page_title %}
		
{% endblock %}
{% block sidebar %}
{% endblock %}
{% block content %}
<div class="container">
<form action="{{ path('login_check',{'attr': {'class': 'form-signin'}}) }}" method="post" >
	<h2 class="form-signin-heading">Please sign in</h2>
	{% if error %}
    	<div class="alert alert-danger" role="alert">Invalid username or password</div>
	{% endif %}
    <input type="text" id="username" name="_username" value="{{ last_username }}"  class="form-control" placeholder="Username" required autofocus/>
    <input type="password" id="password" name="_password" class="form-control" placeholder="Password" required autofocus/>

    {#
        If you want to control the URL the user
        is redirected to on success (more details below)
        <input type="hidden" name="_target_path" value="/account" />
    #}

    <button type="submit" class="btn btn-lg btn-primary btn-block">login</button>
</form>
</div>
{% endblock %}